package com.dahuyou.link.monitoring;

public class ApiTest {

    public static void main(String[] args) {

        //线程一
        new Thread(() -> new ApiTest().method1(), "线程思密达").start();
        new Thread(() -> new ApiTest().method1(), "线程萨瓦迪卡").start();

//        new ApiTest().method1();
    }


    public void method1() {
        System.out.println("测试结果：hi1");
        method2();
    }

    public void method2() {
        System.out.println("测试结果：hi2");
        method3();
    }

    public void method3() {
        System.out.println("测试结果：hi3");
    }


}
